import Vue from 'vue'
import App from './App'
import tools from 'common/tools.js'
import axios from 'common/axios.js'
Vue.config.productionTip = false
Vue.prototype.$tools = tools; //挂在到Vue实例上
Vue.prototype.$axios = axios; //挂在到Vue实例上
Vue.prototype.Http = axios; //挂在到Vue实例上
App.mpType = 'app'

//下拉刷新执行
import loding from 'components/loding.vue'
Vue.component('loding', loding)
//没有数据时候的loading
import moreLoading from 'components/moreLoading.vue'
Vue.component('moreLoading', moreLoading)
//没有数据时候的login
import logins from 'components/login.vue'
Vue.component('login', logins)
//头部导航
import navbar from 'components/dsl-navbar.vue'
Vue.component('dsl-navbar', navbar)
//分享
import share from 'components/dsl-share.vue'
Vue.component('dsl-share', share)

// 全局分享
const $x = {}; 
Vue.prototype.$x = $x;

let sharePage=require('common/share.js');
Vue.mixin(sharePage);


const app = new Vue({
    ...App
})
app.$mount()
